package org.sanm.domain.user;


import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import org.sanm.common.Result;

public interface  UserService extends IService<User> {
    User findByUserName(String username);

    Result register(String username, String password);

    Result<String> login(String username, String password);

    Result<User> userInfo();

    Result update(User user);

    Result updateAvatar(String avatarUrl);

    Result updatePwd(String oldPwd, String newPwd, String rePwd);

    Result<Page<User>> getList(Integer pageNum, Integer pageSize);
}
